FROM openjdk:8-alpine3.9
MAINTAINER k8sdemo from date Asia/Shanghai "534259928@qq.com"
# 修改源
RUN echo "http://mirrors.aliyun.com/alpine/latest-stable/main/" > /etc/apk/repositories && \
    echo "http://mirrors.aliyun.com/alpine/latest-stable/community/" >> /etc/apk/repositories

# 安装需要的软件，解决时区问题
#RUN apk --update add curl bash tzdata && \
#    rm -rf /var/cache/apk/*

ENV TZ Asia/Shanghai
COPY k8s-demo.jar app.jar
EXPOSE 8083
ENTRYPOINT ["java","-jar","app.jar"]
